public class Cat extends Animal{
    static {
        System.out.println("子类静态代码块被执行了......1");
    }
    {
        System.out.println("子类示例代码块被执行了......2");
    }

    public Cat(String name, int age) {
        super(name, age);
        System.out.println("子类构造方法被执行了......3");
    }

    public void bark(){
        System.out.println(name+"在吃饭");
    }
}
